package com.mgkj.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Description:
 *
 * @Author LBB
 * @Create: 2024-12-06 19:30
 * @Version 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EnableSwagger2
@ApiModel(value = "无源/杂发出库提交DTO")
public class PassiveOutStorageDto {

    @ApiModelProperty(value = "条码",required = true)
    @JSONField(ordinal = 2)
    private String barcode;

    @ApiModelProperty(value = "仓库编码",required = true)
    @JSONField(ordinal = 3)
    private String warehouseCode = "";

    @ApiModelProperty(value = "库位编码",required = true)
    @JSONField(ordinal = 3)
    private String binCode;

    @ApiModelProperty(value = "匹配量（数量）",required = true)
    @JSONField(ordinal = 3)
    private Double matchQty;

    @ApiModelProperty(value = "出库方式-其他收发",required = true)
    private String inToType = "其他收发";

    @ApiModelProperty(value = "人员编码",required = true)
    private String employeeCode;

    @ApiModelProperty("是否扣账，Y:扣账，N:不扣账")
    @JSONField(ordinal = 4)
    private String isDeduct;

    @ApiModelProperty(value = "部门编号",required = true)
    private String departmentCode;

    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "单位",required = true)
    @JSONField(ordinal = 3)
    private String unitCode;

    @ApiModelProperty(value = "料号",required = true)
    @JSONField(ordinal = 3)
    private String itemCode;

    @ApiModelProperty("拒收数量")
    @JSONField(ordinal = 3)
    private Double rejectQty = 0.00;

    @ApiModelProperty("报废数量")
    @JSONField(ordinal = 3)
    private Double scrapQty = 0.00;

    @ApiModelProperty("收货机构")
    private String shjg;



}
